//
//  QSHomeHeaderView.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/18.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QSItemModel.h"

@class QSHomeHeaderView;

@protocol QSHomeHeaderViewDelegate <NSObject>
@optional

/** 点击背景图片*/
- (void)homeHeaderView:(QSHomeHeaderView *)headerView didSelectBackgroundPicture:(NSInteger)subIndex;


/** 点击通知 */
- (void)homeHeaderViewDidClickNotificationButton:(QSHomeHeaderView *)headerView;

/** 点击通知标题 传通知id*/
- (void)homeHeaderViewDidClickNotificationTitle:(QSHomeHeaderView *)headerView  imId:(NSInteger)imId;

/** 点击小圆标集合视图 */
- (void)homeHeaderView:(QSHomeHeaderView *)headerView navigationCollectionViewdidSelectItemAtIndexPath:(NSIndexPath *)indexPath itemModel:(QSItemModel *)itemModel;


@end
NS_ASSUME_NONNULL_BEGIN

@interface QSHomeHeaderView : UIView

@property (nonatomic, weak) id<QSHomeHeaderViewDelegate> delegate;
//装有item信息的数组
@property (nonatomic, strong) NSMutableArray *itemArray;

- (void)loadData;
/** 头部背景ImageView*/
@property (nonatomic, strong)UIImageView *headerBackgroundImageView;

/** 头部头像*/
@property (nonatomic, strong)UIImageView *userIconImageView;
/** 姓名Label*/
@property (nonatomic, strong)UILabel *nameLabel;
/** 企业Label*/
@property (nonatomic, strong)UILabel *enterpriseLabel;
/** 右侧箭头*/
@property (nonatomic, strong)UIImageView *rightImageView;
/** 消息通知button*/
@property (nonatomic, strong) UIButton *notificationButton;
@end

NS_ASSUME_NONNULL_END
